home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap26 / dun26_9.txt < prev   
Encoding:
Text File  |  1997-12-18  |  645 b   |  20 lines

  1. var rotation = true;
  2.  
  3.  
  4.  
  5. function coreAction() {
  6.  
  7.     if(rotation == true) {
  8.  
  9.         spinCore(screen_width-281, 0, 202, 101, 101);
  10.  
  11.         setTimeout("spinCore(screen_width-382, 0, 303, 101, 202)", 150);
  12.  
  13.         setTimeout("spinCore(screen_width-180, 0, 101, 101, 0)", 300);
  14.  
  15.         setTimeout("coreAction()", 450);
  16.  
  17.     }
  18.  
  19. }
  20.  
  21. function spinCore(left, cTop, cRight, cBottom, cLeft) {
  22.  
  23.     coreObj.left = left;
  24.  
  25.     if(nav == "ns4") {
  26.  
  27.         coreObj.clip.left = cLeft;
  28.  
  29.         coreObj.clip.right = cRight;
  30.  
  31.     } else {
  32.  
  33.         coreObj.clip = "rect(" + cTop + " " + cRight + " " + cBottom + " " + cLeft + ")";
  34.  
  35.     }
  36.  
  37. }
  38.  
  39.